Post

Replies

Boosts

Views

Activity

How to scan 1D Barcode in an image picked from device photos library in IOS?
I am not able to scan or read the 1D barcode present in the device photos library image, whereas the same I have achieved for QR code(2D barcode) image using the below code. CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:nil options:@{CIDetectorAccuracy:CIDetectorAccuracyHigh}]; if (detector) { CIImage *img = [[CIImage alloc]initWithImage:image]; NSArray* imgFeatures = [detector featuresInImage:img]; NSString* contents; for (CIQRCodeFeature* imgFeature in imgFeatures) { DLog(@"decode %@ ",imgFeature.messageString); contents = imgFeature.messageString; if(contents){ DLog(@"Success"); }else{ DLog(@"Failure"); } return; } } As per my inference, the CIDetector has only the following types to detect from image CIDetectorTypeFace CIDetectorTypeRectange CIDetectorTypeQRCode CIDetectorTypeText https://developer.apple.com/documentation/coreimage/cidetector/detector_types?language=objc Please let me know how I can get my barcode images from the device photos library read/scanned.
1
0
1.6k
Oct ’21
UIAlertController Line separator missing in iPhone 12, iOS 15
The line separator is missing in the alert controller. I am encountering this issue only in the iPhone 12 series devices running iOS 15, in the other versions it works fine. Please share your inputs. Screen capture from iPhone 12 (Line separator is absent) Screen capture from iPhone 11 Here, I have annotated the line separator with a red color box. `UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My title"       message:@"My subtitle"       preferredStyle:UIAlertControllerStyleAlert];       UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault       handler:^(UIAlertAction * action) {}];                [alert addAction:defaultAction];         [m_window.rootViewController presentViewController:alert animated:YES completion:nil];
2
0
995
Oct ’21
Additional Line observed in UITableviewCell even when we have set the line separator to none in iPhone 12 series devices
I am getting a grey line in UITableViewCell. I debugged with all possible ways, but I couldn’t figure out the root cause. In addition, this issue occurs only in iPhone 12 devices running with iOS 15. Please share your inputs. _Screen capture from iPhone 12 _ Here, I have annotated the line separator with a red color box.
1
0
498
Oct ’21
iOS UIAlertController Line separator missing in iPhone 12, iOS 15
The line separator is missing in the alert controller. I am encountering this issue only in the iPhone 12 series devices running iOS 15, in the other versions it works fine. Please share your inputs. Screen capture from iPhone 12 (Line separator is absent) Screen capture from iPhone 11 Here, I have annotated the line separator with a red color box. UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My title"        message:@"My subtitle"        preferredStyle:UIAlertControllerStyleAlert];                UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault        handler:^(UIAlertAction * action) {}];                [alert addAction:defaultAction];        [m_window.rootViewController presentViewController:alert animated:YES completion:nil];
5
0
1.8k
Aug ’21